//
//  TT_TableViewListViewController.h
//  TalkTalk
//
//  Created by ypj on 2019/3/21.
//  Copyright © 2019 河南浩之岩. All rights reserved.
//

#import "BaseViewController.h"
#import "MJRefresh.h"

NS_ASSUME_NONNULL_BEGIN

@interface TT_TableViewListViewController : BaseViewController<UITableViewDataSource, UITableViewDelegate>

@property (nonatomic, strong)   UITableViewController * tableVC;
@property (nonatomic, strong)   NSMutableArray *dataSource;
@property (nonatomic, readonly) UITableView *tableView;
@property (nonatomic, strong)   NSString *tableViewCellClassName;

@property (nonatomic, assign)   NSInteger pageSize;
@property (nonatomic, assign)   NSInteger pageIndex;
@property(nonatomic,assign) BOOL    emptyTipViewOrErrorIsTop;
@property(nonatomic,assign)BOOL     emptyTipViewOrErrorCanClick;
@property(nonatomic,strong)UIImage * noSourceImage;//暂无数据的图片
@property(nonnull,copy)NSString    * titleString;//无数据的标题
- (void)refreshData;
- (void)stopAnimating;
- (void)loadMore;
- (void)loadDataFinished:(NSArray *)items;
- (void)loadDataFinished:(NSArray *)items isMore:(BOOL)isMore;
- (void)loadDataError:(NSError *)error;
- (void)didSelectedItem:(id)selectedItem;
@end

NS_ASSUME_NONNULL_END
